<?php
/**
 * Created by PhpStorm.
 * User: 97606
 * Date: 2019/1/14
 * Time: 9:56
 */
namespace App\Modules\Log;

use App\Modules\AdapterApi;
use App\Services\Log\LogIndex;

class Log extends AdapterApi
{
    /**
     * 生成操作日志
     */
    public function addLog()
    {
        $data = pick_array($this->postData, ['id', 'name', 'type', 'record']);
        return LogIndex::Log()->addLog($data);
    }
}
